_m_a_s_k Specifies a pointer to a 32 x 32 stipple pattern that will be
unpacked from memory in the same way that ggggllllDDDDrrrraaaawwwwPPPPiiiixxxxeeeellllssss unpacks
pixels.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Polygon stippling, like line stippling (see ggggllllLLLLiiiinnnneeeeSSSSttttiiiipppppppplllleeee), masks out
certain fragments produced by rasterization, creating a pattern.
Stippling is independent of polygon antialiasing.
_m_a_s_k is a pointer to a 32 x 32 stipple pattern that is stored in memory
just like the pixel data supplied to a ggggllllDDDDrrrraaaawwwwPPPPiiiixxxxeeeellllssss call with _h_e_i_g_h_t and
_w_i_d_t_h both equal to 32, a pixel format of GGGGLLLL____CCCCOOOOLLLLOOOORRRR____IIIINNNNDDDDEEEEXXXX, and data type
of GGGGLLLL____BBBBIIIITTTTMMMMAAAAPPPP. That is, the stipple pattern is represented as a 32 x 32
array of 1-bit color indices packed in unsigned bytes. ggggllllPPPPiiiixxxxeeeellllSSSSttttoooorrrreeee
parameters like GGGGLLLL____UUUUNNNNPPPPAAAACCCCKKKK____SSSSWWWWAAAAPPPP____BBBBYYYYTTTTEEEESSSS and GGGGLLLL____UUUUNNNNPPPPAAAACCCCKKKK____LLLLSSSSBBBB____FFFFIIIIRRRRSSSSTTTT affect the
assembling of the bits into a stipple pattern. Pixel transfer operations
(shift, offset, pixel map) are not applied to the stipple image, however.
To enable and disable polygon stippling, call ggggllllEEEEnnnnaaaabbbblllleeee and ggggllllDDDDiiiissssaaaabbbblllleeee with
argument GGGGLLLL____PPPPOOOOLLLLYYYYGGGGOOOONNNN____SSSSTTTTIIIIPPPPPPPPLLLLEEEE. Polygon stippling is initially disabled. If
it's enabled, a rasterized polygon fragment with window coordinates x
w
and y is sent to the next stage of the GL if and only if the
w
(x mod 32)th bit in the (y mod 32)th row of the stipple pattern is 1
w w
(one). When polygon stippling is disabled, it is as if the stipple
pattern consists of all 1's.
EEEERRRRRRRROOOORRRRSSSS
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllPPPPoooollllyyyyggggoooonnnnSSSSttttiiiipppppppplllleeee is executed between
the execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd.